class Point {
    double x, y, z;

    public Point(double _x, double _y, double _z) {
        x = _x;
        y = _y;
        z = _z;
    }

    public double getDistance(Point p) {
        return Math.sqrt((x - p.x) * (x - p.x) + (y - p.y) * (y - p.y) + (z - p.z) * (z - p.z));
    }
}

class Test {
    public static void main(String[] args) {
        Point origin = new Point(8.0, 6.0, 4.0);
        Point dest = new Point(10.0, 5.0, 14.0);
        System.out.printf("%.2f%n", origin.getDistance(dest));

    }
}